home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / News Stacks / Jan '90AMUG News™.cpt / Jan '90AMUG News™ / card_14634.txt < prev    next >
Text File  |  1990-01-21  |  2KB  |  58 lines

  1. -- card: 14634 from stack: in
  2. -- bmap block id: 14862
  3. -- flags: 0000
  4. -- background id: 2135
  5. -- name: Diamond
  6. ----- HyperTalk script -----
  7. on CloseCard
  8.   push card
  9. end CloseCard
  10.  
  11.  
  12.  
  13. -- part 1 (field)
  14. -- low flags: 00
  15. -- high flags: 0000
  16. -- rect: left=11 top=60 right=321 bottom=261
  17. -- title width / last selected line: 0
  18. -- icon id / first selected line: 0 / 0
  19. -- text alignment: 0
  20. -- font id: 2
  21. -- text size: 10
  22. -- style flags: 0
  23. -- line height: 13
  24. -- part name: 
  25.  
  26.  
  27. -- part 2 (field)
  28. -- low flags: 00
  29. -- high flags: 0000
  30. -- rect: left=262 top=60 right=334 bottom=508
  31. -- title width / last selected line: 0
  32. -- icon id / first selected line: 0 / 0
  33. -- text alignment: 0
  34. -- font id: 2
  35. -- text size: 10
  36. -- style flags: 0
  37. -- line height: 13
  38. -- part name: 
  39.  
  40.  
  41. -- part contents for background part 1
  42. ----- text -----
  43. 19
  44.  
  45. -- part contents for card part 1
  46. ----- text -----
  47.     Programming is a passion for me.  I eat, sleep, live and breath programming (much to the dismay of my wife).  I find it relaxing and fun.  My purpose in writing this column is to have fun programming on the Mac.  Hopefully you will too.  And since programming is not a spectator sport, I intend for us to get our hands dirty.  So roll up your sleeves and let's dig in.
  48. In order to get off to a quick start, I am going to assume that the reader is already familiar with Pascal, but not necessarily familiar with programming on the Mac.   I will be using Lightspeed Pascal version 2.0 and ResEdit version 1.2 and will upload the complete project, including source code, to the bulletin board after each article.  I encourage you to experiment with the program as we go (I am, why shouldn't you?).  If you find a better way to do something, 
  49.  
  50. -- part contents for card part 2
  51. ----- text -----
  52. feel free to make suggestions...complete with source code, of course!  And if you have ideas for future topics, please let me know.  I would like to make this an on-going adventure.  Anyway,  I get first dibs on the subject matter.  For our first topic, I would like to explore the world of object-oriented programming (OOP for short).
  53.  
  54. Old McDonald had an object...
  55.     I'll bet that you won't believe it when I tell you that you program objects every day.   Perhaps not in exactly the same sense as programming a computer, but programming none the less.  Take for instance an ordinary water faucet.  When I want a drink, I 
  56. turn on the fauce
  57. t and wait for cold 
  58. water to come